package top.huhuiyu.springboot.study.base;

import lombok.Data;

import java.io.Serializable;

/**
 * 分页信息
 *
 * @author 胡辉煜
 */
@Data
public class PageBean implements Serializable {
  private static final long serialVersionUID = 1L;
  private Integer pageNumber;
  private Integer pageSize;
  private Long total;

  public static PageBean instance(Integer pageNumber, Integer pageSize) {
    PageBean pageBean = new PageBean();
    pageBean.setPageNumber(pageNumber);
    pageBean.setPageSize(pageSize);
    return pageBean;
  }
}
